﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
using System.Diagnostics;

using DBServerLibrary;
namespace DBServer
{
    class Program
    {


        // //   用API安装事件处理 
        // static   ConsoleCtrlDelegate   newDelegate=new   ConsoleCtrlDelegate(HandlerRoutine); 


        static void Main(string[] args)
        {
            //移除控制台窗口的关闭按钮
            

            //开始服务
            DBServerLibrary.DBServer _DBServer = new DBServerLibrary.DBServer();
            if (!_DBServer.Start("http://192.168.1.100:9001/WcfFIFA/DBServer"))
            {
                Console.WriteLine(" 注册 WCF 服务失败！！！");
            }
            String ServerName = "DBServer 1 >";
            Console.Write("\r\n"  + ServerName);
            while (true)
            {
                String CommandStr = Console.ReadLine();
                if (CommandStr.ToLower() == "exit")
                    break;
                Console.Write("\r\n" + ServerName);
            }
        }
    }
}
